<template>
	<view>
		<div>
			123
		</div>
		<div v-for="(item,index) in content">{{item}}</div>
		<decode></decode>
	</view>
</template>

<script>
import decode from '@/components/dumenghanfeng-monitorScanCode/monitorScanDCode.vue'	
export default {
	components: {
		decode
	},
	data(){
		return {
			content: '',
		}
	},
	onShow(){
		let _this = this;
		uni.$off('update')
		uni.$on('update', function(data) {
			_this.content.push(data.msg)
		})
	},
}	
</script>

<style>
</style>
